home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_test4.cog < prev    next >
Text File  |  1999-11-15  |  814b  |  52 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_test4.cog    
  4. #
  5. # [GGJ]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12. message        startup
  13. message        arrived
  14. message        blocked
  15.  
  16.  
  17. thing        block
  18. thing        player            local
  19.  
  20.          
  21. end
  22.  
  23. # ========================================================================================
  24. code
  25.  
  26. startup:
  27. Sleep(3.0);
  28. player = GetLocalPlayerThing();
  29. MoveToFrame(block, (1 - GetCurFrame(block)), 0.5);
  30.  
  31. return;
  32.  
  33. arrived:
  34. Sleep(2.0);
  35. MoveToFrame(block, (1 - GetCurFrame(block)), 0.5);
  36.  
  37. SetActorFlags(player, 0x200000);
  38. DetachThing(player);
  39. Sleep(0.05);
  40. ClearActorFlags(player, 0x200000);
  41.  
  42. return;
  43.  
  44.  
  45. blocked:
  46. Print("blocked");
  47. return;
  48.  
  49. end
  50.  
  51.  
  52.